Dynamic_cache_driver
└─Temporary_cache_driver
└─Memcache_driver
public class Memcache_driver
extends Temporary_cache_driver
| Field Summary | |
|---|---|
| protected Memcache | PHP Memcache instance |
| Constructor Summary | |
|---|---|
| Memcache_driver | __construct(string host, int port, bool persistent) Creates an object and establishes Memcached server connection |
| Method Summary | |
|---|---|
| static string | createKey($key key) Make unique key for one of different sites on one memcache pool |
| void | clear(str realm) |
| void | dec(string id, string realm, int value) |
| void | exists(mixed id, mixed realm) |
| void | get(mixed id, mixed realm) |
| array | get_info() |
| void | inc(string id, string realm, int value) |
| void | remove(mixed id, mixed realm) |
| bool | store(string id, mixed data, string realm, int ttl) |
| Methods inherited from API - Cache\Temporary_cache_driver | |
|---|---|
| dec, get_info, get_ini_size, inc | |
| Methods inherited from API - Cache\Dynamic_cache_driver | |
|---|---|
| store | |
protected Memcache $memcache = NULL
public Memcache_driver __construct(string host, int port, bool persistent)
public static string createKey($key key)
public void clear(str realm)
public void dec(string id, string realm, int value)
public void exists(mixed id, mixed realm)
public void get(mixed id, mixed realm)
public array get_info()
public void inc(string id, string realm, int value)
public void remove(mixed id, mixed realm)
public bool store(string id, mixed data, string realm, int ttl)